﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="edit.aspx.cs" Inherits="Crm_Channel_Edit"
    MasterPageFile="~/Crm/crm.master" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../js/jQuery.Hz2Py-min.js" type="text/javascript"></script>
    <script src="../../plugins/lhgdialog/lhgdialog.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function ()
        {
            $("#btnSubmit").click(function ()
            {
                if ($.trim($("#txtTitle").val()) == "")
                {
                    alert("请输入标题!");
                    $("#txtTitle").focus();
                    return false;
                }
            });
            $("#<%=txtcname.ClientID %>").keyup(function ()
            {
                $("#<%=txtename.ClientID %>").val($(this).toPinyin());
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cbody" runat="Server">
    <table class="tblist" style="width: 850px; text-align: left">
        <colgroup>
            <col align="right" style="width: 100px;" class="bg1" />
        </colgroup>
        <tr class="ptitle" align="center">
            <td colspan="4" align="center">
                添加/编辑栏目
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                父编号：
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtTitle" Width="100px" MaxLength="10" CssClass="inputtxt" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                中文名称：
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtcname" Width="200px" MaxLength="20" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                英文名称：
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtename" Width="200px" MaxLength="100" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                是否显示：
            </td>
            <td colspan="3">
                <asp:CheckBox ID="chkIsShow" Checked="true" runat="server" /><input id="hidTypes"
                    runat="server" type="hidden" /><asp:Label ID="lblTip" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                主栏目：
            </td>
            <td colspan="3">
                <asp:CheckBox ID="CheckBox1" Checked="true" runat="server" /><input id="Hidden1"
                    runat="server" type="hidden" /><asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                外部链接地址：
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtPublishTime" Width="300px" CssClass="inputtxt" MaxLength="50"
                    runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                栏目属性：
            </td>
            <td colspan="3">
                <div class="non-border">
                    <asp:RadioButtonList ID="chklist" runat="server" RepeatColumns="1"  RepeatLayout="Flow" >
                        <asp:ListItem Value="0" Selected="True">最终列表栏目</asp:ListItem>
                        <asp:ListItem Value="1">封面页</asp:ListItem>
                        <asp:ListItem Value="2">外部链接</asp:ListItem>
                    </asp:RadioButtonList>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                排序值：
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtOrders" Text="0" Width="20px" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td colspan="3">
                <asp:Button ID="btnSubmit" runat="server" Text="提 交" OnClick="btnSubmit_Click" />
                &nbsp;
                <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
